Printing Messages
This section describes the messages that you can override to develop a printing extension or printer driver. This section presents these messages in categories that relate to the tasks for which you use each message.Included with each message description is a list of specific result codes returned by QuickDraw GX's default implementation of the message. In addition to these result codes, you may also receive file-system, memory, and resource errors. For a complete listing of these errors, see Inside Macintosh: C Summary or Inside Macintosh: Pascal Summary.
A number of the printing messages can return communications result codes, which are listed in Table 4-2. The result codes section for each of these messages refers to this table.
You must define each of your message overrides with the interface that is shown in each message description. Each override must match the formal declaration of the message that it is overriding: it must take the same parameters, in the same order, as shown in
the example. You can provide your own name (whatever name you like) for each override that you define.For clarity, Apple printing extensions and printer drivers apply the same prefix to each override they include. For example, the Apple Personal LaserWriter SC printer driver provides overrides named
SD_ShutDown
,SD_DefaultPrinter
,SD_DespoolPage
, and so on. The background picture printing extension includes overrides namedBWInitialize
,BWShutdown
, andBWDespoolPage
. You can choose to follow a similar convention for naming your message override functions. For example, you could name your override of theGXCountPages
messagesMyCountPages
.Most of the message descriptions also include a "Special Considerations" section, which describes whether you can send the message yourself and whether you can totally override the message. For messages that you can partially override, this section includes information about whether to forward the message prior to or after performing your own tasks.
Subtopics
- Storage Messages
- Print Object Messages
- Application Messages
- Paper-Handling Messages
- Color Profile Messages
- Spooling Messages
- Despooling Messages
- Dialog Box Messages
- Universal Imaging Messages
- Raster Imaging Messages
- PostScript Imaging Messages
- Vector Imaging Messages
- Device Communications Messages
- Compatibility Messages
- Finder Dialog Box Messages
- Finder Menu Messages
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help